-- GENERATED SPELL FOR [Mur'ghoul Corrupter] --


function spell0_23645(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23645', 26000, 1)
end

function Sorts_23645(pUnit, Event)
local choix_sorts_23645 = math.random(0, 0)
if choix_sorts_23645 == 0 then
pUnit:RegisterEvent('spell0_23645', 1, 1)
end
end

function mob23645_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23645', math.random(1500, 3000), 1)
end

function mob23645_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23645_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23645_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23645, 1, 'mob23645_Action')
RegisterUnitEvent(23645, 2, 'mob23645_Leave')
RegisterUnitEvent(23645, 3, 'mob23645_Kill')
RegisterUnitEvent(23645, 4, 'mob23645_Die')
